﻿Imports System.Data.SqlClient
Public Class TraineeExperiences
    Public Shared Function GetTraineeExperience() As DataTable

        Str = " SELECT TRAINEE_EXPERIENCE_ID,TRAINEE_NAME=ENGLISH_NAME +' ( '+KHMER_NAME+' )' ,COMPANY_NAME,DURATION,SALARY,JOB_DESCRIPTION,NOTE,START_DATE,END_DATE,ACTIVE FROM  VIEW_TRAINEE_EXPERIENCE  WHERE ACTIVE=1 ORDER BY TRAINEE_EXPERIENCE_ID ASC"

        Try


            Dim dataAdapter As SqlDataAdapter
            dataAdapter = New SqlDataAdapter(Str, CType(Dbinterface.Connection, SqlConnection))
            Dim dataTable As DataTable = New DataTable()
            dataAdapter.Fill(dataTable)
            Return dataTable
        Catch ex As Exception
            MessageBox.Show(ex.ToString)
            Return Nothing
        End Try
    End Function

End Class
